]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
environment: Define N_() globally
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Nov 2014 12:20:44 +0000 (12:20 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Nov 2014 12:26:33 +0000 (12:26 +0000)
Commit 1291bcd0c84 implemented it for dateMenu, but the function
is already used in screenShield as well. Just add it globally as
we do for other standard gettext "macros".

js/ui/dateMenu.js
js/ui/environment.js

index 260b5ec7fcfc3dd7d9d0cfd224aebc3b820ca763..7ff75f788a86c728a6308fb547a5782edb0a629b 100644 (file)
@@ -19,8 +19,6 @@ const PanelMenu = imports.ui.panelMenu;
 const PopupMenu = imports.ui.popupMenu;
 const Calendar = imports.ui.calendar;
 
-const N_ = function(s) { return s; };
-
 function _onVertSepRepaint(area) {
     let cr = area.get_context();
     let themeNode = area.get_theme_node();
index 3144ec68669207c8274227d14b9096c03947117a..a35c626f4d891659c2fa36cf8a6f87e4fbef217c 100644 (file)
@@ -77,6 +77,7 @@ function init() {
     window._ = Gettext.gettext;
     window.C_ = Gettext.pgettext;
     window.ngettext = Gettext.ngettext;
+    window.N_ = function(s) { return s; };
 
     // Miscellaneous monkeypatching
     _patchContainerClass(St.BoxLayout);